package xyz.yq56.glue_tool.dialog;

import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import org.jetbrains.annotations.Nullable;

import com.intellij.openapi.ui.DialogWrapper;

/**
 * @author yi qiang
 * @date 2023-12-08 17:18:10
 */
public class AddUrlDialog extends DialogWrapper {
    private JPanel mainPanel;
    private JTextField urlTextField;
    private JLabel urlLabel;

    public AddUrlDialog() {
        super(false);
        setTitle("Add Url");
        init();
    }

    @Override
    protected @Nullable JComponent createCenterPanel() {
        return mainPanel;
    }

    public String getUrl() {
        return urlTextField.getText();
    }
}
